Skip to content

Instantly share code, notes, and snippets.

@tommyod
tommyod / mealplanner.py
Last active August 6, 2026 00:11
Automatic planning of cheap, varied, nutritional meals
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
MEAL PLANNER - Automatic planning of cheap, varied, nutritional meals
---------------------------------------------------------------------
Summary
-------
This Python module uses optimization (Linear Programming) and stochastic methods to
@bgolus
bgolus / WorldNormalFromDepthTexture.shader
Last active August 5, 2026 23:59
Different methods for getting World Normal from Depth Texture, without any external script dependencies.
Shader "WorldNormalFromDepthTexture"
{
Properties {
[KeywordEnum(3 Tap, 4 Tap, Improved, Accurate)] _ReconstructionMethod ("Normal Reconstruction Method", Float) = 0
}
SubShader
{
Tags { "RenderType"="Transparent" "Queue"="Transparent" }
LOD 100
@Klerith
Klerith / patrones-recursos.md
Created November 19, 2024 14:33
Recursos adicionales - Patrones de diseño
You are an automated job search agent for Dennis Keefe. Your goal is to find NEW OSINT/Intelligence Analyst job openings in the USA **and Canada** paying $55,000/year (USD) or CAD equivalent or more. Remote roles are the priority, but hybrid and on-site roles are included for visibility. Deduplicate against previously seen listings, log new ones to a Notion database, commit new listings to the Vercel dashboard's data file, and send a push notification digest. This entire routine runs unattended — no step should require Dennis to click, review, or send anything.
---
## KEY CONSTANTS (referenced throughout — do not restate different numbers elsewhere)
- **SALARY_FLOOR = $55,000 USD/year.** Listings paying below this are excluded (but still logged as seen).
- **HIGH_INTEREST_BAR = $75,000 USD/year.** Used only for the ⭐ flag, never for exclusion.
- **Hourly rates:** annualize at 2,080 hours/year (e.g. $27/hr ≈ $56,160 — passes the floor).
@masterkain
masterkain / update-librewolf
Last active August 5, 2026 23:37
update librewolf macos
#!/usr/bin/env bash
set -euo pipefail
# Save into ~/.local/bin/update-librewolf, ask your local llm to put it on your favorite schedule
# Auto-update LibreWolf on macOS (Apple Silicon or Intel)
# - Detect latest version and assets from Codeberg releases API
# - Skip if already installed
# - Download DMG, verify SHA256, install to /Applications
@sciwhiz12
sciwhiz12 / brigadier_basics_pt1.md
Last active August 5, 2026 23:36
Explanation of Brigadier, in two parts; adapted from a private Discord convo when I was explaining this too

Brigadier's main object is CommandDispatcher<S>. This is where the command nodes are registered, and it does the parsing and execution of commands.

The generic type S can be any object; it is used as a context object that is stored in the CommandContext<S> that's passed around to commands/argument types. (MC uses CommandSource, while Janitor uses MessageReceivedEvent).


Brigadier's command model is of a tree. Each node can have children of other nodes, with one node having no parent but all the children (the root node).

There are three types of nodes:

@imikerussell
imikerussell / buzz-untag.sh
Created August 5, 2026 17:58
Make ONE Buzz agent answer you without an @-mention from ANYWHERE!
#!/usr/bin/env bash
# buzz-untag — make ONE Buzz agent answer you without an @-mention.
#
# buzz-untag.sh <AgentName> wire it up
# buzz-untag.sh --undo <AgentName> put everything back
#
# Every change is per-agent. No other agent is touched, and no file is shared.
set -euo pipefail
UNDO=0
#EXTM3U x-tvg-url="https://avkb.short.gy/jioepg.xml.gz"
#EXTINF:-1 tvg-id="143" tvg-name="CNBC Tv18 Prime HD" tvg-type="Business" group-title="FREEIPTV25 Business" tvg-language="English" tvg-logo="http://jiotv.catchup.cdn.jio.com/dare_images/images/CNBC_Tv18_Prime_HD.png",CNBC Tv18 Prime HD
https://sports247.eu.org/api/app/live.php?id=143&e=.m3u8
#EXTINF:-1 tvg-id="144" tvg-name="Colors HD" tvg-type="Entertainment" group-title="FREEIPTV25 Entertainment" tvg-language="Hindi" tvg-logo="http://jiotv.catchup.cdn.jio.com/dare_images/images/Colors_HD.png",Colors HD
https://sports247.eu.org/api/app/live.php?id=144&e=.m3u8
#EXTINF:-1 tvg-id="146" tvg-name="History TV18 HD" tvg-type="Infotainment" group-title="FREEIPTV25 Infotainment" tvg-language="English" tvg-logo="http://jiotv.catchup.cdn.jio.com/dare_images/images/History_HD.png",History TV18 HD
https://sports247.eu.org/api/app/live.php?id=146&e=.m3u8
#EXTINF:-1 tvg-id="153" tvg-name="Zee Talkies" tvg-type="Movies" group-title="FREEIPTV25 Movies" tvg-language="Ma
@ChristopherA
ChristopherA / git_worktrees.md
Last active August 5, 2026 23:30
Git Worktree Best Practices and Tools

Git Worktree Best Practices and Tools

Last Updated: 2024-02-06

Overview

Git worktrees allow you to check out multiple branches simultaneously in separate directories, while sharing a single .git metadata store.

THere are some best practices, useful Git aliases, and shell functions for efficiently managing Git worktrees. It covers:

  • Setting up Git aliases for worktree operations.
  • Using shell functions for enhanced worktree management.
@CoolOppo
CoolOppo / Vim Commands Cheat Sheet.md
Created February 5, 2014 20:47
Vim Commands Cheat Sheet

Source

Vim Commands Cheat Sheet


How to Exit

:q[uit]